define(function(require, exports, module) {
    var sTpl = require("./index.html");



    var vueComponent = Vue.extend({
        template: sTpl,
        data: function() {
            return {
                list: []
            }
        },
        methods: {

        },
        created: function() {
            //实际中应该发异步
            this.list = [{
                id: 1001,
                name: '研发部',
                sex: '办公一楼',
                age: 101
            }, {
                id: 1002,
                name: '生产部',
                sex: '办公二楼',
                age: 290
            }, {
                id: 1003,
                name: '销售部',
                sex: '办公三楼',
                age: 34
            }, {
                id: 1004,
                name: '后勤部',
                sex: '办公四楼',
                age: 12
            }];
        }
    });


    Vue.component('m-table', vueComponent); //都全局注册 同时exports

    module.exports = vueComponent;
});